package lianXi1;

public class MaoPao {
	/*public static void main(String[] args) {
		int[] aa=new int[5];
		aa[0]=3;
		aa[1]=4;
		aa[2]=1;
		aa[3]=3;
		aa[4]=5;
		for (int i = 0; i < 5;i++) {
			for(int f=i+1;f<5;f++) {
			if (aa[f]<aa[i]) {
				int m =aa[f];
				aa[f]=aa[i];
				aa[i]=m;
			}
			}
		}
		for (int q:aa) {
			if (q==aa[aa.length-1]) {
				System.out.print(q);
			} else {
				System.out.println(q+",");

			}
		}
	}*/
/*public static void main(String[] args) {
	int[] aa= new int[5];
	aa[0]=5;
	aa[1]=4;
	aa[2]=1;
	aa[3]=2;
	aa[4]=3;
	for (int i = 0; i < 5; i++) {
		for (int f = i+1; f<5; f++) {
			if (aa[f]<aa[i]) {
				int m=aa[f];
				aa[f]=aa[i];
				aa[i]=m;
			}
		}
	}
	for (int q:aa) {
		if (q==aa[aa.length-1]) {
			System.out.println(q);
		} else {
System.out.println(q+",");
		}
	}
}*/
/*	public static void main(String[] args) {
		int[] aa= new int[5];
		aa[0]=5;
		aa[1]=4;
		aa[2]=1;
		aa[3]=2;
		aa[4]=3;
		for (int i = 0; i < 5; i++) {
			for (int f = i+1; f < 5; f++) {
				if (aa[f]<aa[i]) {
					int m=aa[f];
					aa[f]=aa[i];
					aa[i]=m;
				} 
			}
		}
		
		for (int q:aa) {
			if (q==aa[aa.length-1]) {
				System.out.println(q);
			} else {
System.out.println(q+",");
			}
		}
	}*/
	public static void main(String[] args) {
		int[] aa=new int[5];
		aa[0]=5;
		aa[1]=4;
		aa[2]=3;
		aa[3]=1;
		aa[4]=2;
		for (int i = 0; i < 5; i++) {
			for (int f = i+1; f < 5; f++) {
				
			
			if (aa[f]<aa[i]) {
				int m=aa[f];
				aa[f]=aa[i];
				aa[i]=m;
			}
		}}
		for (int q:aa) {
			if (q==aa[aa.length-1]) {
				System.out.println(q);
			} else {
System.out.println(q+";");
			}
		}
	}
	
}
